package com.yuantong.xyerp.core.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 出入库单/采购、销售、调拨出入库单，包含生产原料出库和生产产品入库
 * </p>
 *
 * @author JianguoYin
 * @since 2021-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WarehouseReceipt对象", description="出入库单/采购、销售、调拨出入库单，包含生产原料出库和生产产品入库")
public class WarehouseReceipt implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "36位UUID主键")
    private String id;

    @ApiModelProperty(value = "出入库单单据编号（业务编号）")
    private String docNo;

    @ApiModelProperty(value = "产品大品类名（冗余字段）")
    private String categoryName;

    @ApiModelProperty(value = "0-原料;1-成品(冗余字段)")
    private String goodsType;

    @ApiModelProperty(value = "1-采购入库，2-生产产品入库，3-调拨入库，4、退货入库、5-销售出库，6-调拨出库，7-生产原料出库")
    private String type;

    @ApiModelProperty(value = "关联业务id（采购单、销售单、调拨单，生产出入库为空）")
    private String businessId;

    @ApiModelProperty(value = "仓库id（t_organization表中类型为仓库的记录id）")
    private String warehouseId;

    @ApiModelProperty(value = "总重量(内勤确认后的准确重量回写)")
    private BigDecimal totalWeight;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "最近修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String creatorId;

    @ApiModelProperty(value = "-1-取消，0-保存，1-待审核，2-完成")
    private String status;


}
